package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Plainmodel implements Serializable {
    private Integer pmid;

    private Integer taid;

    private Integer prid;

    private String did;

    private String pmdesc;

    private Date setdatetime;

    private static final long serialVersionUID = 1L;

    public Integer getPmid() {
        return pmid;
    }

    public void setPmid(Integer pmid) {
        this.pmid = pmid;
    }

    public Integer getTaid() {
        return taid;
    }

    public void setTaid(Integer taid) {
        this.taid = taid;
    }

    public Integer getPrid() {
        return prid;
    }

    public void setPrid(Integer prid) {
        this.prid = prid;
    }

    public String getDid() {
        return did;
    }

    public void setDid(String did) {
        this.did = did;
    }

    public String getPmdesc() {
        return pmdesc;
    }

    public void setPmdesc(String pmdesc) {
        this.pmdesc = pmdesc;
    }

    public Date getSetdatetime() {
        return setdatetime;
    }

    public void setSetdatetime(Date setdatetime) {
        this.setdatetime = setdatetime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Plainmodel other = (Plainmodel) that;
        return (this.getPmid() == null ? other.getPmid() == null : this.getPmid().equals(other.getPmid()))
            && (this.getTaid() == null ? other.getTaid() == null : this.getTaid().equals(other.getTaid()))
            && (this.getPrid() == null ? other.getPrid() == null : this.getPrid().equals(other.getPrid()))
            && (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid()))
            && (this.getPmdesc() == null ? other.getPmdesc() == null : this.getPmdesc().equals(other.getPmdesc()))
            && (this.getSetdatetime() == null ? other.getSetdatetime() == null : this.getSetdatetime().equals(other.getSetdatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPmid() == null) ? 0 : getPmid().hashCode());
        result = prime * result + ((getTaid() == null) ? 0 : getTaid().hashCode());
        result = prime * result + ((getPrid() == null) ? 0 : getPrid().hashCode());
        result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode());
        result = prime * result + ((getPmdesc() == null) ? 0 : getPmdesc().hashCode());
        result = prime * result + ((getSetdatetime() == null) ? 0 : getSetdatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pmid=").append(pmid);
        sb.append(", taid=").append(taid);
        sb.append(", prid=").append(prid);
        sb.append(", did=").append(did);
        sb.append(", pmdesc=").append(pmdesc);
        sb.append(", setdatetime=").append(setdatetime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}